package com.t365.service.impl;

import com.t365.service.SysUserService;
import com.t365.service.TreeResultService;
import org.junit.Before;
import org.junit.Test;
import org.springframework.context.ApplicationContext;
import org.springframework.context.support.ClassPathXmlApplicationContext;

import javax.annotation.Resource;

import static org.junit.Assert.*;

public class TreeResultServiceImplTest {

    @Resource
    TreeResultService treeResultService;

    @Before
    public void before(){
        ApplicationContext ctx =new ClassPathXmlApplicationContext("applicationContext-jdbc.xml");
        treeResultService=(TreeResultService) ctx.getBean("treeResultService");
    }
    @Test
    public void getMenuListByRidAndParentId() {

        treeResultService.getMenuListByRidAndParentId(1,"0");
    }
}